#ifndef _LISTBULLET_H
#define _LISTBULLET_H

#include "Sprite.h"
#include "Bullet.h"
#include "Gun.h"
#include <list>
#include <iostream>
using namespace std;

class CGun
{
protected:
	list < CBullet > _listBullet;
	CSprite *_sprite;
	float ix0, iy0;
	bool _gun;

public:
	CGun();
	CGun(LPD3DXSPRITE SpriteHandler, LPWSTR Path, double Width, double Height, int Count, int SpritePerRow, D3DCOLOR TransparentColor);

	void Add(CBullet *ibullet);	
	void CheckALiveBullet();
	virtual void Draw(CSprite *isprite);
	void Draw();

	~CGun();
};

#endif